#ifndef		__OMNI_API_DEF_H_INCLUDED__
#define		__OMNI_API_DEF_H_INCLUDED__

extern "C" {
#include	"../lua/luajit.h"
#include	"../lua/lualib.h"
#include	"../lua/lauxlib.h"
}

#define REGAPI(l, f, s)	lua_pushcfunction(l, f); lua_setglobal(l, s);
#define REGMETAAPI(l, f, s) lua_pushcfunction(l, f); lua_setfield(l, -2, s);

#endif//!	__OMNI_API_DEF_H_INCLUDED__
